update rules, fix cookie issues