Fix remote parsing and replace config by scope.