added extra configuration and option for separate ratios