added retrieve emails