use public and public_data fields for api