adding persistent cookie support, working set, in #1