move require events to global