add matchlongest command