change to use profile srcipt.