reorder actions in 2nd stage script