restore build script