Init share app, client refactoring