in progress, wiring for all tables