fixing rest streams to api.rest callbacks
fixing rest streams to callbacks of api.rest