modified context of registerroutestask to application