finish the connection with knowledge base server part