added gmail downloading functionality