move RLTable stuff to its own header