add addCookie helper to common utilities