include queryexception at the top