add support for ratios