fixed some shell scripts