provide writeFile, writeFileSync interface