add diagnostic features