Communication issues between agent and server