args.index should be optional and default to the config