added email endpoints