feature waitEvents