refine config, add comments.