Rewrite loadRouter