clean up and simplify symlink script