add log and set interval