wrote a queue class for the buffers that appears to be working