session prototype working