simplify cookie() and p3p()