fixed loci and clojure problems, used submit rather that invoke