added some more generic functions for app management