added injectable event dispatcher on command