email fetching, some bugs fixed and firefox compatibility work