directions can now be read from json configuration.
rename a couple of functions for more consistency across modules.