better upload script