pass an object that represents the module, object contains name and path