fix period would always get pulled from cli
update logic to getting count from cli too
perf: don't need to get config options every loop iteration