merging in email fetch functionality