cleanup api of binary deserializer