moved interval duration to config