BATCH WORKS with file output