debug tweaks in upscaling