move ctable stuff to ctable_ext + test