`` let us get under way as best we can , '' riley said to purbeck ; though the main- and mizzen sails and rigging had been badly mauled , the foremast and its rigging were untouched but for a few tangled ropes , and they managed to get a small spread of sail before the wind .