misc shell scripts