updates per review; fix bug that was causing new cookies to be created for different paths