read discovery url once from client request; rename context to client and environment to context