make it friendly to front end template: use dict() for items