some hacks to remove the old code that was not really EM, and to show the Hessian