add build script
modify build script
implemented gather_scather