implemented extension-to-app connection