handle symlinks