fix deprecated calls
Merge pull request #175 from gimler/fix_deprecated_calls

fix deprecated calls