improvements to inspector