queryreader moved to utils