fix infinitest and nightly scipt