add flag for non-blocking operations
first step to fix pause state
testing pause state on benchmarkSampler
test simple state loop