upgrade insert-module-globals for newline fix