Should self.scheme here be just scheme?