add build script and correct error