better exception when extension is not properly configured