added support for HATEOAS