add newlines at file end