refine build process.