fixes #2, problems with empty output files