invert scripts