added a better _basic_table_command check