allow typeahead to use ressource directly