renamed build_file to write_file
Reduced to minimum?