extract the optimizer method, fulfilled by a mock for now