events now work with non-group functions