make email notification optional