fix consumer factory