started work on rest-adapter: couple tests already passing