prepare for cookie management in internal routing