put switch on Router prototype