resolve feature and deprecation warnings. fix tests