first version of email module