stats and email separate functions and flags