commit first version of high level session library, needs more work