add ability to retrieve local address from scope