initial piece of fix for Issue #8 but I still need to add multi-table support.  Also, reworked the checkfortable logic to be a bit smarter.