upload script fix