write batch queries to a new dir
can write batch query to new dir, deleted testdir