add nl cr to write messages