added email capability. still needs customization.