refine scripts, use configure presets.