towards BinaryWrite
add formats to BinaryWrite