rearranging some of the internal structure...but still a problem with the bytestring sending.