mostly restored blank lines at file ends