first edit files to tune all intervals