exposing entities as a dict