fix upload script