write files too