adds in file redirection case