added CRLF support and spec