small fix for getting connection