update fetch script to set email as well