minor changes to the shell script