added configurable object serializer