invitation handling