generalized table codec