update function table masks
wip test for merging function tables