added email system. fixes #17