fix deprecation warnings
Merge pull request #8 from ryoung/master

fix deprecation warnings