fixed the vast majority of random broken things

not that it'll do anything useful now