adding initial router related code