generic functions in Application class