simplify switches and take the whole cookie