tried converting buffer to string