added support for multiple cookies