updated the script ..automatic flow #33