add global variables to handle vendor and legacy output