add a capsule method for checking if a module exists
support insertion of modules via a custom function
support external modules in bundler