Improved virtual path detection