only assign uuid if needed