use commands instead of functions for the table stuff