updated serializer (collections support)