added hydrate and dehydrate for use with caching