add \n to end of file