fix script and runtime