migrate to use text so we can serlialize each attr
serialize attrs that need to preserve their type