optimize garbage collection during jit
add dynamic buffer handling for string replacements separate global and emitter event type management