working redirection. Still work to do on redirection errors