replace atomic internals with boost atomics
add another log