fix EOL in output