add some app-related funs