they clambered on mast and in the rigging and stood on the gunwales in order to get a better look as their captain reached into the chest and picked out one of the vials and examined it in the light .