basically everything minus the emailing part