add missing pool handling for scripts to DS