session fix for newts