added a method to recompile the router