added beacon and region support