add reconnect api