table building adapted to new interfaces
merging