change in file writer/loader to take into account the different endlines (mac vs windows vs linux)