beginning of format conversions from wire bits to x