wip
session problem
refinements