rewrite some in router class