trying ot get agent to work