fix deprecation warnings about dynamic finders
fix deprecated scope warning
Merge pull request #168 from akatz/fix-deprecation-warnings

fix deprecation warnings about dynamic finders