finish with \n at EOF