new patch from gabor for allowing jsm global changes