fixed email sending, status updating