deleted some old stuff used for writing files