reorganizing api functionality for efficiency, new dehydrate method
new dehydrate method, reorg of api