handle references on non "id" fields