fixed executeCommand function to use new event based response handling