added the latest version of the bash script