clean up table parsing.