substituting require directives for use in mose