first part of autogenerating module creator host patch