changed apirequest response implementation