fix cookie issue, misc