fix performance issues WIP #10588
try to get path from filesystem