added in mic and fixed some bugs with buffers