verify the config and added some exception throwing/checking