updated to work with private browsing in safari