updating default email and using it in agent header