write builder to file