fixing redirection semantics