add binary serializer helper