add email spec & hopefully fix email sending