adding try catch for weird start of buffer