Insert parse function with debug flag

* debug flag is set in logic.util.clj
merge