using buffer directly
upgrade insert-module-globals for the global event
3.30.1