huge cleanups

implemented the new api architecture much more neatly into the app.
fixed bugs.

=> now at the point, the app was before the restructurings