add missing hook to register extension in an app