add scripts to ease regeneration