handling for hm id and serial