main loop almost done, I wrote some todos
improvisations in main loop, not finished