wasted time to reshuffle code into classes. have a main loop now.