overwrite option on writeFile