prep for uploading