adding delays and retries to get agent data, changing process setup a little