fleshing out returned dicts for api and views