enable global trace in encoder