refine build scripts