added super basic email logic