almost done, need fix sendmail