refactor dshellprocess