output file and dirs