regular output file writing works