fixing missing stderr redirection