moved this into _ratiofix.py