adding function to get client from services