data as gateway and getbeacon handling