fixed some script support