add a new constructor for Client to set context with host