upstream script
fix upstream script