rebuild bex format/encoder/decoder
spec for file format