some authentification work and fetching mail work