refine the depends to make st script