local emu functionality restored after refactoring.