okay so swapping sort of works now. It works, but it muddles up the memory space somehow so the programs are terminating too quickly. figured I should commit before I work out the bugs.