scopes and events