Organize recconect server logic