fixed deprecations. fixes #1