add lr table preprocess
the lr1 part will eventually merge in to generalized table construct code