lib: add support for path: prefix searches