fixed a few broken pieces of code, the app now starts