use local file for query