fix script management