update Automation.php