email notifier and some other tiny fixes