name functions the same as we did for keyword/direction earlier. to do: json configuration and lua test.