updated uid to to write out both formatted and non formatted versions for es