add redirect support to DShell