added function ...write_scaffold