cubature for mlv, fixes to global, other fixes