flexible pull script