fixes to HCI, cmds and events now work