can't test socket since it blocks waiting for connection