more progress on the worker emulator