improved initialize-module-instance