added simple output file generation