added interrupter function and queryresponse