removed cookie stuff.  for later update and better abstraction