playing with parsing and writing to files