first scripts for uploading