add a log counter and switch back to interprocess atomics