seperate out parse and query