change to HATEOAS