[WIP] transforming an object into a hash