after some updates: prf stuff, some changes to QueryHandler.java