update email file structure