introduce WBResource to support search through resources