a few jit optimizations