updated to use for RESTadapter