clean up parent caching code.