Tableflip

creating this PR to aid in code review.  Too many changes to do this review commit by commit.