more cookie magic
more utils
add getFirstMatchMap