make interval configurable