fixed some script stuff