improve ttydebug code
ttydebugd enhancements
making way for a new parser - super easy to grok