clean up missing newlines