added persistent cookies