more email notifications and other improvements