config check improvement