use @api_method and return dicts