emit commands as events