they 'd learned , after that first near-disaster the day the king had visited them , to rig a trestle up on the pilings , counterweighted at the back , and use it to pull the beam upwards , as well as just along , so that it could be gently lowered on to the piling , instead of hauled up and manhandled into the slot that was ready for it .