added location in addagent.php