try catch when adding stuff to buffer in