add support for custom expected preds