potential improvements to shell scripts, to test..