add datatype to header in ServiceThread