added external output scaling support