Rewriting internal loaders