rename variables on agent.js