added deeplink detection