good god, I have no idea what this is...

lots of tweaks and changes