add conditional symlink support