fixed deprecations. fixes #7