update dockapp detection logic