added support for output redirection
added support for output redirection