1. add framework for logistic case