merged SimpleClient and SimpleClient2