update code to fix symlink failures