switched cookie library. style tweaks