update to API change in Optim.fminbox