new writelines, closing repaired