rebuild connection, preparing to handle multiple requestes