fix deprecation warnings
Merge pull request #17 from bfops/fix-deprecation

fix deprecation warnings