adding API method to getAllModules