please also make the change with instanceof Route. everything else looks like a hack.