Loader rewrite