scripts for updating agent