improved nearby beacon scanning

Please review @schilit