added helpers for dealing with cookies