update deprecation warnings from 0.4 release for 0.5
Merge pull request #1005 from reaperhulk/update-deprecation

update deprecation warnings from 0.4 release for 0.5