preliminary changes to consume custom cookies