move action selection to router level