fix readability of agent dereference