feature to add references to flat foreign tables