add beacon and outof map functio