miscellaneous fixes to jit