adding init method to QueryRuntime