add the writer to the parse file method