moving data mode constants to settings file.