fix email errors, notifications flag, flash data errors