bug fix + external require support for modules