added `writeFile()` to utils