added hydrate feature - Fixes #1