yeah I've completely redone this to do this in a safer saner way, but the commits are on a laptop that is currently being fixed (I have annoying mac backups but I'm not digging through them on linux unless I have to)