load mgl and ml