allow cookie reading
fix infinite recursion issue