data as gateway and beacon handling