experimented with short rationals
merged with Anders' updates