added read email code