* Storage: refactor filtering, improve performance * added a comment to `newpathfilter` * after merge fixes