added console.error when parsing result