agent was incorrectly using server var.