change Agent to Script