fixed changes to accomodate a gmail script