improving the robustness while fetching the mails