core: add emit command