fix command output redirection