add State and Output (debug level control)