added SelectorResolver so that it can be used in the Controller