removes token if not needed and adds connectorType