added ability to override discovered serializer