removed unused loop in connector, specified error msg