restoring ConnectorActor.scala