reset. remember to fix sendrawemail