moved interval to config