moved 'criteria' and 'interval' into config