initialize the client as early as possible