add binaryserialization class