self.opts is now self.args in app.py