fixed bug where connect would crash without internet connectivity