lots of changes, bug fixes

Rewrote a LOT of shit, changed up the way SIDs are retrieved and when,
fixed a number of bugs, probably introduced a handful of new ones.