only resolve symbolic links if necessary