better cookie reporting + refactoring code