massive overhaul of fpga code