move old rotate_table things into ROTATE_TABLE