initialize the client providing an hash