add wait for all module finish