checks for symlinks