depreacted connect callback