adding ability to write to file - not going well.