kdebugterm fixed and refactored
hotfix