big changes to shell script.