fix opts -> self.opts