moat setup and initialisation junk...