modified shell scripts and indent of shmem