getting nightly run working