upload main scripts