added AppRegistry and AppProvider to support thirdparty apps