adding codec separation
less thread usage for transformers
more efficient key for event queue