added basic session support