partially stage of magit: correct get-rat
correct api of the rational package