mimic RESTAdapter