finished basic uploading scripts