script extraction