initial proximity functionality. not fully working