basic initFields func-ty has been impl-d

nested session structure added