trying to fix shell scripts