move min mr version vars to fn