support preloading modules based on extension