updating ref and build script