adding debug "console" and togglebuttons