extract side effect from extractCookie()