add support for toggleoutput