add support for refinements