now routing is added and the mem corroption fix, now need to do routing based on criticality