apply latest library
migrate resource to serializer