fix entity transfer format
added logging & made gql query work