put actual writing to file in comments again