fix script creation