remove circular reference; clean up
store hash