optimization & mail notifier