might replace with durableSocket. need to test.