updating mail; importing assist functions