Bring back extension hook, it's needed after all

This reverts commit 25bc77896bd94c400928d65213e0f3d42abd7adc.
Fix inspect