attempt to fix script issues