start session only if needed.