restructuring, scripts