event to ensure correct agent is connected