fix deprecations
Merge pull request #12 from Psli/master

fix deprecations