Added cory stuff
added some cookie fiddling