changes to extending the REST adapter