file writer implemented (not tested)
conflict resolved