got ceo2 working using genall, fixed greedy.