cookiehandling added for easier reading