move the stub_table to class stub