add debug switch
bug fixes: merge similar phrases