manage connection separately