[WIP] refactoring app 'sharing'