add newlines to end of file