adding constructor to QueryRuntime