changes to install agent script