now using my own class to fetch mails