query parsing
wip