add missing newlines at EOF