x: session script fixup