improved rest api