restructuring update scripts