coding script v2. progress bar done.