fix some deprication warnings
Merge branch 'hotfix/1.2.1'