added events and references modules