extending ignoredModules to accept a function

nicely enables more dynamic addition and removal of ignoredModules at runtime.