added console for logging response