connect functionality is fixed