prep for upload