refactor: convert the app in a package