add interval to config