minor edit to fix the way commands are fetched from a dict