sessions optimizations