changed layout, added possible output file reader