1.25: listeners methods used when available, built-in state debuggers extracted to listeners, DEBUG_MODE.states removed