caching package rewrite.