fixed deprecated code, tweaked dependencies