always add \r\n to the end