minimal change
byte format parsing and checking
merged changes by christian