add error and mail app