update the way to run script