communication with agent