support resourcePath === resource