refactor to do some neat vec>map config for commands