added some debugging
added some debugging
try to fix cookie handling
some debug stuff