wrote most of a create session function, I can't stay awake, now I feel tired