attempt to resolve ambiguous foreign keys