fix Event.kind always being the number 0, add relationships for Entity members