according to legend , captain william kidd had stopped there in 1697 and ended up leaving with only half his crew , the rest of them seduced by the lifestyle of a pirate utopia where the motto was `` for god and liberty , '' with the emphasis on liberty .