extract method; make sure md5_seqid is used correctly