add add_socket back in (0.0.9)