repaired session creation