a lot of new logistic regression stuff