correcting directory structure to match package name and fixing issue with sites that use redirects with cookies