Implement the expand-id API.

"cannot get ids" ?