add diagnostic page