added writeFile writeFileSync