use the moat-style api