router is no longer global