set main_klass also when calling static_table_for