updates Session's buffer to Builder[Byte, Seq[Byte]] and bug/compile fixes