* refact some script