putting test-prevent-invitations back in