fixing upload script