set proper etag
add value type conversion