improve reconnect action