fixed client api for trials