fixed \r\n to \n