added uuid detection function