add eml feature (work in progress)