setup for config_type variable and logging.