email function added, currently unusable