rename the api to use underscores (dart convention)