switch from using strings to using buffers
buffer fix