remove Optimizer in an attempt to handle optimization with search