Use register_serializer() in favor of addSerializer

addSerializer(name, serializer, verbose = TRUE)