added resolver in factory