updated enclosure_helpers: write_wigs