fix basic output redirection