generalized transform scripts, moved 2d and 3d sections to transform