added emulation thread