add support for passing phantom cookie objects