writeFileSync is not what I remembered