adding email backup functionality