add client base code