try to implemente lock free ring buffer