a bunch more FFIs, need to automate this before i go insane