Switch r alias to equal rails (handling v3 or v4)