fix deprecations and other warnings. add in a logging dependency.