moved config to setup version
added emailing function