update to automation script