add error redirections