make ndays configurable