shell script tweaks