emulating loadTable