don't use api inside statsmodels