setup app and manager
fix method declaration