added clientservice and corresponding api