add newlines at eof