OnConnect restore