added console log for requests AND responses