remove doQuery as 'internal' function