removed old cookie code
added new constructors and start() and stop() methods