refactor GtSubProc
bug fix at Dshell