local emu dehavior code added.