decode command output