fix performance issues
try to get path from filesystem