remove deprecation warnings, fix #10