self.app in __init__ is not needed anymore