shell script improvements
shell script improvements