introduces cookie management