extract id and title of object where available