fix some "deprecated" warnings
silence "deprecated" warnings