improve direct upload of data