new query interface progress: bug fixes