add routing through array