output path and query to /tmp/emtpy.txt for debugging purposes