working client-side and server-side trust metric calculations