add ratio and patch flags