now writing generated file to disk