fix deprecated code; release 2.1.7