get cookies to prevent issues