changed buffers to be char vectors instead of strings