adding simple ring buffer with atomic calls; should do the trick for us