redirection almost working