removed hardcoded eol - seems to work with \r\n