bugfix.  expose ids in the api