use local version of query