expose the api query parser
cleanup white space