restructured scripts