cleanup, mail dependencies, first mail for invitations