bug fix

router was getting instantiated twice, once way to early.