handle warnings and new_table correctly
fix syntax
Merge pull request #3176 from dimagi/lookuptable-fixes

handle warnings and new_table correctly