removed unused buildClient()