updated for single carriage return for ending message instead of cr-lf