adding "ratio" support