moved lines into ksession obj. for tracking and future graph support