Fix quality scaling when using zc
another structural overhaul