main: almost got it working
main: big roll-up now that stuff is working