improve the REST API