getClient method