remade build script