reworked nightly build structure