table switch mock for testing
stats and fix error cnt