updated to allow non-string values inside with tag