local emu integreted to behavior - main branch. TODO: test functionality.