fixed up nightly script