add foreign keys and nested response entities