fixing symlink code adding echo statements