safe checks before running jit